[% FOREACH comment IN comments %]
<div class='multi'>
<table align='center'>
<tr class='reply[% IF loop.count mod 2;'2';ELSE;'1';END; %]'>
    <td valign='top' width='157'>
        [% INCLUDE include/user_profile.html user = comment.author %]
    </td>
	<td valign='top' width='*'>
	  <div><b>[% comment.title %]</b></div>
	  <div class='horizontal'></div>
	  <table width='100%' cellpadding='0' cellspacing='0' height='120' style="TABLE-LAYOUT: fixed">
	  <tr valign='top'><td class="textbody">
	  <span class="postclass">
	  [% IF comment.author.status == 'banned' %]
	    The author is banned.
	  [% ELSE %]
	    [% IF comment.upload %]
	    [% INCLUDE upload/upload.html upload = comment.upload %]
	    [% END %]
	    [% comment.text %]
	  [% END %]
	  </span>
      </td></tr>
      </table>
      <br>
      <div class='horizontal'></div>
       [% UNLESS no_reply %]
       <a href='/comment/[% comment.comment_id %]/reply'><img src='[% c.config.dir.images %]/replynow.gif' width='16' height='15' align='absmiddle'> Reply</a>
       [% END %]
       [% IF c.user_exists AND comment.author.user_id == c.user.user_id %]
       <a href='/comment/[% comment.comment_id %]/edit'><img src='[% c.config.dir.images %]/edit.gif' width='16' height='15' align='absmiddle'> Edit</a>
       <a href='/comment/[% comment.comment_id %]/delete'><img src='[% c.config.dir.images %]/del.gif' width='16' height='15' align='absmiddle'> Delete</a>
       [% END %]
       <img src='[% c.config.dir.images %]/posttime.gif' width='16' height='15' align='absmiddle'> <span class='date'>[% comment.post_on %]</span>
    </td>
</tr>
</table>
</div>
[% END %]
[% IF comments.size %]
<div class='none'>
<table align='center'>
    <tr><td>[% INCLUDE 'sub/pager.html' pager = comments_pager %]</td></tr>
</table>
</div>
[% END %]